package zhouyang.Assert.constructorinjection;

import org.springframework.stereotype.Component;

/**
 * @author: 叶子
 * @date: 2022/03/02 12:50
 * 演示构造注入无法解决循环依赖
 **/
@Component
public class ServiceA {
    private  ServiceB serviceB;
    public ServiceA(ServiceB serviceB){
        this.serviceB = serviceB;
    }
}